﻿<common:LayoutAwarePage
    x:Name="pageRoot"
    x:Class="XnReader.WinRT.Forms.About"
    DataContext="{Binding DefaultViewModel, RelativeSource={RelativeSource Self}}"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:XnReader.WinRT.Forms"
    xmlns:common="using:XnReader.WinRT.Common"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d">

    <Page.Resources>

        <!-- TODO: Delete this line if the key AppName is declared in App.xaml -->
        <x:String x:Key="AppName">My Application</x:String>
    </Page.Resources>

    <!--
        This grid acts as a root panel for the page that defines two rows:
        * Row 0 contains the back button and page title
        * Row 1 contains the rest of the page layout
    -->
    <Grid Style="{StaticResource LayoutRootStyle}" Background="#FFE6EBD4">
        <Grid.RowDefinitions>
            <RowDefinition Height="140"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <!-- Back button and page title -->
        <Grid>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="120"/>
                <ColumnDefinition Width="*"/>
            </Grid.ColumnDefinitions>
            <Button x:Name="backButton" Click="GoBack" IsEnabled="{Binding Frame.CanGoBack, ElementName=pageRoot}" Style="{StaticResource BackButtonStyle}"/>
            <TextBlock x:Name="pageTitle" Grid.Column="1" Text="关于" Style="{StaticResource PageHeaderTextStyle}"/>
        </Grid>
            <RichTextBlock Grid.Row="1" Grid.Column="1" x:Name="of" OverflowContentTarget="{Binding ElementName=of1}" Padding="120,0,40,0" FontFamily="Microsoft YaHei">
                <Paragraph x:Name="paragraphContent" FontSize="18" FontFamily="Microsoft YaHei">
                <Bold>[小说来了] 打造最好的小说搜索阅读体验</Bold>
                <LineBreak/>
                <LineBreak/>
                <Bold>程序当前版本：</Bold>
                    v2.1.3
                    <LineBreak/>
                    <Bold>本次更新内容：</Bold> 
                    <LineBreak/>1.新增本地导入TXT功能.
                    <LineBreak/>2.新增背景壁纸,字体,大小控制,彻底优化页面的阅读体验.
                    <LineBreak/>3.增加点击阅读页面翻页功能.
                    <!--<LineBreak/>4.优化在线搜书阅读功能,增加过滤搜索来源功能.-->
                    <LineBreak/>4.新增在线搜索首页风格,类别导航功能.
                    <LineBreak/>5.新增多书架功能.
                    <LineBreak/>6.新增阅读历史,进度显示.
                    <LineBreak/>7.新增版本更新,用户评论.
                <LineBreak/>
                <LineBreak/>PS:本次升级将清空原有的阅读记录,不便之处,请谅解.
                <LineBreak/>
                <Bold>下一版本功能预告：</Bold>
                <LineBreak/>1.加入页面进度跳转功能.
                2.加入书签功能.
                3.优化书架导入及修改书架的操作方式.
                4.优化搜索引擎数据来源,囊括更多来源.
                5.在线搜索书籍目录功能修改
                <!--<LineBreak/> 3.继续优化阅读功能.-->
                <!--<LineBreak/> 6.开放用户自定义书架功能.-->
                <!--<LineBreak/> 7.新增本地导入多种格式文件功能.-->
                <!--<LineBreak/>6.新增书签功能.-->
                <!--<LineBreak/>7.书柜之间的拖动.-->
                <!--<LineBreak/>8.导入、删除时加入进度条.-->
                <LineBreak/>
                    <LineBreak/>
                    <Bold>联系我们：</Bold>
                    <LineBreak/>1.Email: xsll.service@gmail.com
                    <LineBreak/>2.QQ书友群:9664935
                </Paragraph>
            </RichTextBlock>
            <VisualStateManager.VisualStateGroups>

            <!-- Visual states reflect the application's view state -->
            <VisualStateGroup x:Name="ApplicationViewStates">
                <VisualState x:Name="FullScreenLandscape"/>
                <VisualState x:Name="Filled"/>

                <!-- The entire page respects the narrower 100-pixel margin convention for portrait -->
                <VisualState x:Name="FullScreenPortrait">
                    <Storyboard>
                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="backButton" Storyboard.TargetProperty="Style">
                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PortraitBackButtonStyle}"/>
                        </ObjectAnimationUsingKeyFrames>
                    </Storyboard>
                </VisualState>

                <!-- The back button and title have different styles when snapped -->
                <VisualState x:Name="Snapped">
                    <Storyboard>
                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="backButton" Storyboard.TargetProperty="Style">
                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource SnappedBackButtonStyle}"/>
                        </ObjectAnimationUsingKeyFrames>
                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="pageTitle" Storyboard.TargetProperty="Style">
                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource SnappedPageHeaderTextStyle}"/>
                        </ObjectAnimationUsingKeyFrames>
                    </Storyboard>
                </VisualState>
            </VisualStateGroup>
        </VisualStateManager.VisualStateGroups>
    </Grid>
</common:LayoutAwarePage>
